package edu.wpi.first.wpilibj.templates.commands;

import edu.wpi.first.wpilibj.templates.OperatorInterface;
import edu.wpi.first.wpilibj.templates.subsystems.Pneumatics;

/**
 *
 * @author Super NURDs
 */

public class DoLowGear extends CommandBase {

    public DoLowGear() {
        // Use requires() here to declare subsystem dependencies
        // eg. requires(chassis);
        requires(myDriveTrain);
    }

    // Called just before this Command runs the first time
    /**
     *  extend the jacks but only has to happen once
     */
    protected void initialize() {
        myDriveTrain.lowGear();
    }

    // Called repeatedly when this Command is scheduled to run
    protected void execute() {
        //Do nothing just wait for cancel to retract
    }

    // Make this return true when this Command no longer needs to run execute()
    protected boolean isFinished() {
        return true;
    }

    // Called once after isFinished returns true
    /**
     * Retract the Jacks at the end of the command
     */
    protected void end() {
    }

    // Called when another command which requires one or more of the same
    // subsystems is scheduled to run
    protected void interrupted() {
        end();
    }
}


